<?php

declare(strict_types=1);

namespace App\CustHub\Service;

use App\CustHub\Mapper\ChDataSyncMapper;
use App\CustHub\Mapper\ChRobotMapper;
use App\Robot\Service\RobotApiService;
use Hyperf\Di\Annotation\Inject;
use Mine\Abstracts\AbstractService;

class ChDataSyncService extends AbstractService
{
    public $mapper;

    #[Inject]
    protected ChRobotMapper $robotMapper;

    public function __construct(ChDataSyncMapper $mapper)
    {
        $this->mapper = $mapper;
    }

    public function test($robotUserId,$id)
    {
//        $robotInfo = $this->robotMapper->findByUserId($robotUserId);
//
//        $robotApiService = make(RobotApiService::class,[$robotInfo['server_id'],$robotInfo['robot_key']]);
//
//        $result = $robotApiService->dataSync($id,7254577);

//        var_dump($result);
    }
}